from celery.schedules import crontab

from order import run_playbook_with_cert
from datetime import timedelta
from .celery import  app
# res= add(7,8)
# print (res)


app.conf.beat_schedule = {
    'ansible-task': {
           'task': 'run_playbook_with_cert',
           'schedule': timedelta(seconds=60),
           'args': (playbook_path='/root/test/deploy.yaml',inventory_path='/root/test/hosts.ini'),
     }
}
